/*
 * @Description
 * @Author: shilinzhou
 * @Date: 2024-02-02 10:18:45
 * @LastEditors: James324
 * @LastEditTime: 2024-03-21 15:37:04
 */
import type { BaseTableConfig } from '@/components/base-ui/base-table/type';
import { widthLevel1, widthLevel2, widthLevel3, thWordLength5, thWordLength4 } from '@/config';

export const tableConfig: BaseTableConfig = {
    items: [
        {
            modelKey: 'orderNumber',
            columnProps: {
                label: '订单号',
                width: widthLevel2
            }
        },
        {
            modelKey: 'itemNumber',
            columnProps: {
                label: '物料编码',
                width: widthLevel2
            }
        },
        {
            modelKey: 'itemName',
            columnProps: {
                label: '物料名称',
                width: widthLevel2
            }
        },
        {
            modelKey: 'demandQuantity',
            columnProps: {
                label: '需求数量',
                width: thWordLength4
            }
        },

        {
            modelKey: 'orderDeliveryTime',
            columnProps: {
                label: '订单交期',
                width: widthLevel3
            }
        },
        {
            modelKey: 'orderStatus',
            slotName: 'orderStatus',
            columnProps: {
                label: '订单状态',
                width: thWordLength4
            }
        },
        {
            modelKey: 'scheduledQuantity',
            columnProps: {
                label: '已排程数量',
                width: thWordLength5
            }
        },
        {
            slotName: 'unscheduledQuantity',
            modelKey: 'unscheduledQuantity',
            columnProps: {
                label: '未排程数量',
                width: thWordLength5
            }
        },
        {
            modelKey: 'plannedQuantity',
            columnProps: {
                label: '计划数量',
                width: thWordLength4
            }
        },
        {
            modelKey: 'plannedStartTime',
            columnProps: {
                label: '计划开始时间',
                width: widthLevel1
            }
        },
        {
            modelKey: 'plannedEndTime',
            columnProps: {
                label: '计划结束时间',
                width: widthLevel1
            }
        }
    ],
    actionProps: {
        width: 114
    },
    unSelection: true
};
